package org.example.StudentManagementSystem.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.StudentManagementSystem.entity.Class;
import org.example.StudentManagementSystem.mapper.ClassMapper;
import org.example.StudentManagementSystem.service.ClassService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper, Class> implements ClassService {

    @Override
    public boolean removeBatchByIds(List<Integer> ids) {
        if (ids == null || ids.isEmpty()) {
            return false;
        }
        return baseMapper.deleteBatchIds(ids) > 0;
    }
}
